
Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    title: String,
    value: Boolean,
    disabled: Boolean,
    color: String
  },
  data: {

  },
  methods: {
    onChange(event) {
      this.setData({
        value: event.detail
      })
      this.triggerEvent('change', event.detail.value)
    }
  }
})
